From: Chad Horohoe Date: Wed, 14 Aug 2013 22:23:30 +0000 (-0700) Subject: Spaces in memcached keys are annoying X-Git-Tag: 1.31.0-rc.0~18970 X-Git-Url: http://git.cyclocoop.org//%22http:/%22.attribut_html%28%24lesurls%5B%24numero%5D%29.%22/%22?a=commitdiff_plain;h=7005d46ba1a1cc19ab843eac52ce43e34dea2811;p=lhc%2Fweb%2Fwiklou.git Spaces in memcached keys are annoying Change-Id: I2fe2befb4c142cddbcfb73bd71b88d333e804428 --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 6dd6d596db..4dd1713f7d 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -1150,7 +1150,7 @@ class ApiMain extends ApiBase { $this->setHelp(); // Get help text from cache if present $key = wfMemcKey( 'apihelp', $this->getModuleName(), - SpecialVersion::getVersion( 'nodb' ) ); + str_replace( ' ', '_', SpecialVersion::getVersion( 'nodb' ) ) ); if ( $wgAPICacheHelpTimeout > 0 ) { $cached = $wgMemc->get( $key ); if ( $cached ) {